/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.banner-container {
  overflow: hidden;
  width: 100%;
  height: var(--banner-height);
  margin-bottom: 12px;
  margin-left: 0;
  border-radius: 0;
  position: relative;
}

@media (width<600px) {
  .banner-container {
    width: calc(100% - 32px);
    margin-left: 16px;
    border-radius: 16px;
  }
}

.banner-wrapper {
  display: flex;
  will-change: transform;
}

.banner-item {
  flex-shrink: 0;
  box-sizing: border-box;
  height: var(--banner-height);
}

.banner-item img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.swiper-dot {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dot-active {
  width: 12px;
  background-color: rgb(10, 89, 247);
  border-radius: 4px;
}
